<?php
/**
 * Created by PhpStorm.
 * User: ivi
 * Date: 2019/2/23
 * Time: 17:57
 */

namespace App\Utils;


class ViewHelper
{
    static function E404($msg)
    {
        if (request()->ajax()) {
            return Output::fail($msg);
        }
        return view('admin/error')->with('msg', $msg ?? "404");
    }
}
